<extend name="Public:template" />
<block name="page_header">
	<include file="Public:header_cust"/>
</block>
<block name="page_body">
	<div class="row">
		<div class="span4">
			<include file="Public:left_menu_cust"/>
		</div>
		<div class="span16">
			<include file="Public:breadcrumb_cust"/>
			<table class="table table-striped table-bordered">
				<tr>
					<th>订单号</th>
					<th>下单时间</th>
					<th>订单总额</th>
					<th>订单状态</th>
					<th>操作</th>
				</tr>

				<volist name="list" id="val">
					<tr>
						<td class="span4"><a href="{:U('CustOrder/showDetail',array('order_code'=>$val['order_code']))}"><span class="badge alert-danger">{$val.order_type|m_order_type}</span>{$val.order_code}</a></td>
						<td class="span4">{$val.cust_order_time|date="Y-m-d H:i",###}</td>
						<td class="span4 text-right">
							¥{$val.order_amt|number_format=###, 2,'.',''}
							<if condition="$val['order_send_fee'] neq 0">
								(含¥{$val['order_send_fee']|number_format=###, 2,'.',''}运费)
							<else/>
								(免运费)
							</if>
						</td>
						<td class="span3">{$val.order_status|m_order_status}</td>
						<td><a href="{:U('CustOrder/showDetail',array('order_code'=>$val['order_code']))}">详细</a></td>
					</tr>
				</volist>
				<empty name="list">
					<tr><td colspan="5">暂时没有订单信息</td></tr>
				<else/>
					<tr><td colspan="5" class="text-right "><div><button type="button" class="btn btn-small pull-left" onclick="history.back(-1)">返回</button></div><div class="pages">{$page}</div></td></tr>
				</empty>
			</table>			
		</div>
	</div>
</block>
<block name="script_footer">
<script type="text/javascript">
$(document).ready(function(){
	$("li.blueGraBg").on("click",function(){
		document.location.href = $(this).attr('action_url');
	})
})
</script>
</block>
